import { ref, onBeforeMount } from 'vue';
import { isInTabBar, } from '@/utils/route';

export function useInTabBar() {
	const is = ref(true);
	onBeforeMount(() => {
		is.value = isInTabBar();
	});
	return [is];
}